package tech.aistar.service.authordis;

import tech.aistar.entity.authordis.NoteAuthor;
import tech.aistar.entity.authordis.Traveler;
import tech.aistar.entity.authordis.UserTable;

import java.util.List;


/**
 * Created by lenovo on 2019/9/28.
 */
public interface INoteAuthorDisService {

    /**
     * 随机寻找达人,一条一条找,
     * @return
     */
    List<Traveler> findAuthorRandom();

    /**
     * 通过用户id来查询用户
     * @param
     * @return
     */
    UserTable findUserInfoByUserId(Integer id);

    /**
     * 通过达人id查询其信息
     * @param id
     * @return
     */
    NoteAuthor findAuthorByAuthorId(Integer id);
}
